package com.linxiao.hrcrm.service;

import java.util.List;
import com.linxiao.hrcrm.domain.CrmCustomerSalary;

/**
 * 客户薪资记录Service接口
 * 
 * @author zhoudong
 * @date 2024-01-03
 */
public interface ICrmCustomerSalaryService 
{
    /**
     * 查询客户薪资记录
     * 
     * @param id 客户薪资记录主键
     * @return 客户薪资记录
     */
    public CrmCustomerSalary selectCrmCustomerSalaryById(Long id);

    /**
     * 查询客户薪资记录列表
     * 
     * @param crmCustomerSalary 客户薪资记录
     * @return 客户薪资记录集合
     */
    public List<CrmCustomerSalary> selectCrmCustomerSalaryList(CrmCustomerSalary crmCustomerSalary);

    /**
     * 新增客户薪资记录
     * 
     * @param crmCustomerSalary 客户薪资记录
     * @return 结果
     */
    public int insertCrmCustomerSalary(CrmCustomerSalary crmCustomerSalary);

    /**
     * 修改客户薪资记录
     * 
     * @param crmCustomerSalary 客户薪资记录
     * @return 结果
     */
    public int updateCrmCustomerSalary(CrmCustomerSalary crmCustomerSalary);

    /**
     * 批量删除客户薪资记录
     * 
     * @param ids 需要删除的客户薪资记录主键集合
     * @return 结果
     */
    public int deleteCrmCustomerSalaryByIds(Long[] ids);

    /**
     * 删除客户薪资记录信息
     * 
     * @param id 客户薪资记录主键
     * @return 结果
     */
    public int deleteCrmCustomerSalaryById(Long id);

    /**
     * 批量审核通过
     * @param ids
     * @return
     */
    int audits(Long[] ids);

    /**
     * 批量结算
     * @param ids
     * @return
     */
    int settle(Long[] ids);

    /**
     * 批量发薪
     * @param ids
     * @return
     */
    int grant(Long[] ids);

    /**
     * 获取某员工的薪资记录
     * @param crmCustomerSalary
     * @return
     */
    List<CrmCustomerSalary> findByUser(CrmCustomerSalary crmCustomerSalary);
}
